function(copy_conan_libs TARGET_DIR_PATH)
    get_filename_component(TARGET_DIR_ABS_PATH "${TARGET_DIR_PATH}" ABSOLUTE)
    message(STATUS "[conan] The conan libs will copy to ${TARGET_DIR_ABS_PATH}")

    include(${CMAKE_SOURCE_DIR}/cmake/get_conan_lib_dirs.cmake)
    get_conan_lib_dirs()
    set(DENPEND_DLL_FILES)
    if(WIN32)
        foreach(CONAN_LIB_DIR ${CONAN_LIB_DIRS})
            file(GLOB DLL_FILES "${CONAN_LIB_DIR}/*.dll")
            file(COPY ${DLL_FILES} DESTINATION ${TARGET_DIR_ABS_PATH})
            list(APPEND DENPEND_DLL_FILES ${DLL_FILES})
            message(STATUS "[conan] ${DLL_FILES} copy to ${TARGET_DIR_ABS_PATH}")
        endforeach()
    elseif(UNIX)
        foreach(CONAN_LIB_DIR ${CONAN_LIB_DIRS})
            file(GLOB SO_FILES "${CONAN_LIB_DIR}/*.so*")
            file(GLOB LIB_FILES "${CONAN_LIB_DIR}/*.lib")
            file(COPY ${SO_FILES} ${LIB_FILES} DESTINATION ${TARGET_DIR_ABS_PATH})
            list(APPEND DENPEND_DLL_FILES ${SO_FILES})
            message(STATUS "[conan] ${SO_FILES} ${LIB_FILES} copy to ${TARGET_DIR_ABS_PATH}")
        endforeach()
    endif()
    # message(STATUS "DENPEND_DLL_FILES: ${DENPEND_DLL_FILES}")
    set(DENPEND_DLL_FILES ${DENPEND_DLL_FILES} PARENT_SCOPE)
endfunction()